home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / ENET.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  2.0 KB  |  67 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ENET.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__ENET__') = 'UNDEFINED' THEN
  18. __ENET__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24. ;        include 'ConditionalMacros.a'                                ;
  25.  
  26.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  27.     include 'OSUtils.a'
  28.     ENDIF
  29. ;        include 'MixedMode.a'                                        ;
  30. ;        include 'Memory.a'                                            ;
  31.  
  32. ENetSetGeneral                    EQU        253                    ;Set "general" mode
  33. ENetGetInfo                        EQU        252                    ;Get info
  34. ENetRdCancel                    EQU        251                    ;Cancel read
  35. ENetRead                        EQU        250                    ;Read
  36. ENetWrite                        EQU        249                    ;Write
  37. ENetDetachPH                    EQU        248                    ;Detach protocol handler
  38. ENetAttachPH                    EQU        247                    ;Attach protocol handler
  39. ENetAddMulti                    EQU        246                    ;Add a multicast address
  40. ENetDelMulti                    EQU        245                    ;Delete a multicast address
  41. EAddrRType                        EQU        'eadr'
  42.  
  43. EParamBlock             RECORD    0
  44. qLink                     ds.l    1                                    ;General EParams
  45. qType                     ds.w    1                                    ;queue type
  46. ioTrap                     ds.w    1                                    ;routine trap
  47. ioCmdAddr                 ds.l    1                                    ;routine address
  48. ioCompletion             ds.l    1                                    ;completion routine
  49. ioResult                 ds.w    1                                    ;result code
  50. ioNamePtr                 ds.l    1                                    ;->filename
  51. ioVRefNum                 ds.w    1                                    ;volume reference or drive number
  52. ioRefNum                 ds.w    1                                    ;driver reference number
  53. csCode                     ds.w    1                                    ;Call command code
  54. VariantLevel0Begin        EQU    *
  55. eProtType                 ds.w    1                                    ;Ethernet protocol type
  56. ePointer                 ds.l    1                                    ;No support for PowerPC code
  57. eBuffSize                 ds.w    1                                    ;buffer size
  58. eDataSize                 ds.w    1                                    ;number of bytes read
  59.  
  60.                         ORG        VariantLevel0Begin
  61. eMultiAddr                 ds.b    6                                    ;Multicast Address
  62.  
  63. sizeof                     EQU    38
  64.                         ENDR
  65.  
  66.     ENDIF ; __ENET__
  67.